﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace AuthApi.Contracts
{
    [Serializable]
    [DataContract]
    public class WebApplicationInfo
    {
        public WebApplicationInfo()
        {
            Roles = new List<RoleIncluded>();
            Operations = new List<OperationIncluded>();
        }

        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Url { get; set; }

        [DataMember]
        public string Contacto { get; set; }

        [DataMember]
        public bool Active { get; set; }

        [DataMember]
        public bool RequiereLoginSinEmpresa { get; set; }

        [DataMember]
        public string Domain { get; set; }

        [DataMember]
        public string AdPath { get; set; }

        [DataMember]
        public string AdUser { get; set; }

        [DataMember]
        public string AdPassword { get; set; }

        [DataMember]
        public List<RoleIncluded> Roles { get; set; }

        [DataMember]
        public List<OperationIncluded> Operations { get; set; }
    }
}
